import java.math.BigInteger;
import java.util.*;

public class Main {
    /**
     * 不完整的算式（2023国赛）
     * @param args
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str=in.nextLine();
        int n=str.length();
        int pos=-1;
        int pos1=-1;
        for(int i=0;i<n;i++){
            if(str.charAt(i)=='?'){
                pos=i;
                break;
            }
        }
        for(int i=1;i<n;i++){
            if(str.charAt(i)=='='){
                pos1=i;
            }
        }
        if(pos==0){
            int num1=Integer.valueOf(str.substring(2,pos1));
            int num2=Integer.valueOf(str.substring(pos1+1,n));
            if(str.charAt(pos+1)=='+'){
                System.out.println(num2-num1);
            }else if(str.charAt(pos+1)=='-'){
                System.out.println(num2+num1);
            }else if(str.charAt(pos+1)=='/'){
                System.out.println(num2*num1);
            }else{
                System.out.println(num2/num1);
            }
        }else if(pos==n-1){
            int pos2=-1;
            for(int i=0;i<n;i++){
                if(str.charAt(i)=='+'||str.charAt(i)=='-'||str.charAt(i)=='*'||str.charAt(i)=='/'){
                    pos2=i;
                    break;
                }
            }
            int num1=Integer.valueOf(str.substring(0,pos2));
            int num2=Integer.valueOf(str.substring(pos2+1,pos1));
            if(str.charAt(pos2)=='+'){
                System.out.println(num2+num1);
            }else if(str.charAt(pos2)=='-'){
                System.out.println(num1-num2);
            }else if(str.charAt(pos2)=='/'){
                System.out.println(num1/num2);
            }else{
                System.out.println(num2*num1);
            }
        }else if(str.charAt(pos+1)=='='){
            int pos2=-1;
            for(int i=0;i<n;i++){
                if(str.charAt(i)=='+'||str.charAt(i)=='-'||str.charAt(i)=='*'||str.charAt(i)=='/'){
                    pos2=i;
                    break;
                }
            }
            int num1=Integer.valueOf(str.substring(0,pos2));
            int num2=Integer.valueOf(str.substring(pos1+1,n));
            if(str.charAt(pos2)=='+'){
                System.out.println(num2-num1);
            }else if(str.charAt(pos2)=='-'){
                System.out.println(num1-num2);
            }else if(str.charAt(pos2)=='/'){
                System.out.println(num1/num2);
            }else{
                System.out.println(num2/num1);
            }
        }else{
            int num1=Integer.valueOf(str.substring(0,pos));
            int num2=Integer.valueOf(str.substring(pos+1,pos1));
            int num3=Integer.valueOf(str.substring(pos1+1,n));
            if(num3==num1*num2){
                System.out.println("*");
            }else if(num3==num1-num2){
                System.out.println("-");
            }else if(num3==num1+num2){
                System.out.println("+");
            }else{
                System.out.println("/");
            }
        }
        in.close();
    }
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = in.nextInt();
        }
        int[] b = new int[n];
        int cnt = 0;
        int count = 0;
        for (int i = 1; i <= n; i++) {
            for (int j = 0; j < n; j++) {
                b[j] = i * (j + 1);
                if (b[j] % a[j] == 0) {
                    count++;
                }
            }
        }
        System.out.println(count);
        in.close();
    }
    public static void main2(String[] args) {
        BigInteger num=BigInteger.valueOf(2023);
        BigInteger res=BigInteger.valueOf(1632);
        for(int i=1;i<2023;i++){
            res=res.multiply(num);

        }
        res=res.mod(BigInteger.valueOf(1000000007));
        System.out.println(res);
    }
    public static int func(int a,int b){
        int t;
        while(a!=0){
            t=b%a;
            b=a;
            a=t;
        }
        return b;
    }
}